<div ng-controller="GzhscCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/gzhsc/list">{{'素材'| translate}}</a></li>
        <li class="active">
            列表
        </li>
    </ul>
    <form name="storeForm" novalidate ng-submit="saveData()" >
        <div class="control-group">
            <label class="control-label v-top">{{'标题'|translate}}:</label>
            <div class="controls">
                <input ng-model="gzhsc.title" type="text" name="title" class="input-xlarge">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'类目'|translate}}:</label>
            <div class="controls">
            <gzhsucat-get ng-model="gzhsc.gzhsc_cat_id"  dft="1"></gzhsucat-get>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'标签'|translate}}:</label>
            <div class="controls">
                <gzhsc-tag  title="选择标签"  xclass="sui-btn btn-success ng-binding" chosed-items="gzhsc.gzhsc_tag_ids"></gzhsc-tag>
                <table class="sui-table table-bordered" style="margin-top:5px " ng-if="gzhsc.gzhsc_tag_ids">
                    <tbody>
                        <tr ng-repeat="ad in gzhsc.gzhsc_tag_ids">
                            <td>
                                <gzhsctag-info ng-model="ad"></gzhsctag-info>
                            </td>
                            <td>
                                <button type="button" class="sui-btn btn-danger" ng-click="gzhsc.gzhsc_tag_ids.splice($index,1)">{{'delete'|translate}}</button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'内容'|translate}}:</label>
            <div class="controls">
                 <ueditor ng-model="gzhsc.content" uid="{{uid}}" style="width:694px"></ueditor>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="submit" class="sui-btn btn-primary" ng-disabled="!gzhsc.title">
                    {{'save' | translate}}
                </button>
            </div>
        </div>
    </form>
</div>